package com.bj58.mis.apm.client.boot.schedule;

import com.bj58.mis.apm.collector.SchedulableCollector;

public class CollectorScheduableBean {
    private boolean enable;
    private String type;
    private SchedulableCollector collector;
    private long period; //TimeUnit.SECONDS

    public CollectorScheduableBean() {
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public SchedulableCollector getCollector() {
        return collector;
    }

    public void setCollector(SchedulableCollector collector) {
        this.collector = collector;
    }

    public long getPeriod() {
        return period;
    }

    public void setPeriod(long period) {
        this.period = period;
    }

    @Override
    public String toString() {
        return "CollectorScheduableBean{" +
                "enable=" + enable +
                ", type='" + type + '\'' +
                ", collector=" + collector +
                ", period=" + period +
                '}';
    }
}
